﻿@using Webs.Models;
@if (@ViewBag.BillDetail != null)
{
    <table border="0" cellpadding="0" cellspacing="0" class="list-table">
        <tr>
            <th class="first" width="80px">
                @SharedRes.SharedString.No
            </th>
            <th width="310px">
                @BillRes.BillString.PARTICULAR_U
            </th>
            <th width="310px">
                @BillRes.BillString.DESCRIPTION
            </th>
            <th width="250px">
                @BillRes.BillString.GROSSW
            </th>
            <th>
            </th>
        </tr>
        @{
           int i = 1;
           foreach (Get_BillDetailResult b in ViewBag.BillDetail)
           {
            
            <tr>
                <td class="first right">
                    @i
                </td>
                <td valign="top">
                    @b.Container
                </td>
                <td valign="top">
                    @b.Description
                </td>
                <td valign="top">
                    @b.GrossWeight
                </td>
                <td valign="top" class="last">
                    <a href="@Url.Action("EditDetail", "Bill", new { id = b.BillNo, detail = b.BillDetailNo})" class="lnkBtn">
                        @SharedRes.SharedString.Detail
                    </a>
                    <br />     
                    <a href="@Url.Action("DeleteDetail", "Bill", new { id = b.BillNo, detail = b.BillDetailNo})" class="lnkBtn" style="margin-top: 5px">
                        @SharedRes.SharedString.Delete
                    </a>               
                </td>
            </tr>
                   i++;
           }
        }
    </table>
    
}
<a href='@Url.Action("AddDetail", "Bill", new { id = @ViewBag.BillNo}) ' class="lnkBtn" style="margin-top: 5px">
    @SharedRes.SharedString.Add
</a>
